<!--
 * @Descripttion: 
 * @Author: voanit
 * @Date: 2022-08-31 11:46:20
 * @LastEditors: voanit
 * @LastEditTime: 2022-08-31 11:52:41
-->
<template>
  <div>
    御剑乘风来,除魔天地间!===vue3==dau======={{ app }}
    <button @click="btn">按钮===子向父传值</button>
  </div>
</template>
<script>
export default {
  name: '',
  props: {
    app: {
      type: String
    }
  },
  setup (props, { emit }) {
    console.log(props.app);

    const btn = () => {
      /* this.$emit()===emit */
      // console.log(emit, 9);
      emit('handle', '我是dau')
    }
    return { btn }
  }
}
</script>
<style lang='less'  scoped>
</style>